{% include file="index.header.tpl.php" %}
{% include file="index.left.tpl.php" %}
  <style>
		@media only screen and (max-width: 760px),(min-device-width: 768px) and (max-device-width:1024px)  {
		#mytable, #mytable thead, #mytable tbody, #mytable th, #mytable td, #mytable tr { 
			display: block; 
		}
		#mytable thead tr { 
			position: absolute;
			top: -9999px;
			left: -9999px;
		}
		#mytable td { 
			border: none;
			border-bottom: 1px solid #eee; 
			position: relative;
			padding-left:44% !important; 
			padding-top:10px ;
		}
	    #mytable tr{ margin-bottom:20px;}
		#mytable td:before { 
			position: absolute;
			top:10px;
			left:8px;
			width: 45%; 
			padding-right:10px;
			white-space: nowrap;
		}
		    #mytable td:nth-of-type(1):before { content: "学年"; }
			#mytable td:nth-of-type(2):before { content: "学期"; }
			#mytable td:nth-of-type(3):before { content: "任职情况"; }
			#mytable td:nth-of-type(4):before { content: "任课信息"; }
			#mytable td:nth-of-type(5):before { content: "教学成绩"; }
			#mytable td:nth-of-type(6):before { content: "课时"; }
			#mytable td:nth-of-type(7):before { content: "个人获奖"; }
			#mytable td:nth-of-type(8):before { content: "年度考核"; }
        }		
	</style>
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form name="myform" action="" method="get" role="form">
                <div class="box-header with-border">
                    <span class="fa fa-pencil" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title"><span></span>{%$staff.staff_name%}教学信息</p>
                </div>
                <div class="box-body">
					<div class="col-sm-8 col-xs-12 form-group" style="padding-left:0;">
						<input type="hidden" name="staff_id" value="{%$sid%}">
						  <label class="col-sm-2 col-xs-12 control-label text-right" style="padding:0; font-weight:500; ">
							   学年学期：
						  </label>
						  <div class="col-sm-4 col-xs-8" style="padding:0;">
							  <select class="form-control" name="semester_id">
					  {%foreach  from=$semester_lists  key=key  item=value%} 
                                <option value="{%$value.semester_id%}" {%if $value.semester_id eq $semester_id%}selected{%/if%}> {%$value.semester_xname%}第{%$value.semester_name%}学期</option>
                       {%/foreach%}
                              </select>  
						  </div>
                           <div class="col-sm-1 col-xs-3" >
							   <input type="hidden" name = 'a' value="teacher.teachlist">
							    <button style="submit" class="btn btn-warning ">查询</button> 
						  </div>						  
				    </div>
					<div style="clear:both;"></div>
                     <table class="table table-bordered"  id="mytable">
						<thead>
							<tr>
								<td>学年</td>
								<td>学期</td>
								<td>任职情况</td>
								<td>任课信息</td>
								<td>教学成绩</td>
								<td>课时</td>
								<td>个人获奖</td>
								<td>年度考核</td>
							</tr>	
						</thead>
							<tbody>

								<tr>
									<td>{%$semester_data.semester_xname%}</td>
									<td>{%$semester_data.semester_name%}</td>
									<td>
										{%foreach from=$staff.position_data key=key item=value%}
											{%if $value.position_name != ''%}
												<p>{%$value.department_name%}：{%$value.position_name%}</p>
											{%else%}
												<p>{%$value.research_name%}{%$value.prepare_name%}{%$value.discipline_name%}{%$value.grade_name%}{%$value.class_name%}：{%$value.position_type%}</p>
											{%/if%}
										{%/foreach%}
									</td>
									<td>
										{%foreach from=$staff.subject_data key=key item=sss%}

										 <p>所教学科：{%$sss.subject_name%} ， 班级：{%$sss.class_name%}</p>

										{%/foreach%}
									</td>
									<td>
										 <p>期中考</p>
										 <!--{%$staff.subject_data%}，{%$staff.class_data%}，平均分：分，级排名：{%$staff.score_data%}<br/>
										
										 <p>期末考</p>
										 {%$staff.subject_data%}，{%$staff.class_data%}，平均分：分，级排名：{%$staff.score_data%}<br/>
										-->
									</td>
									<td>
										 周课时：{%$staff.hour_data%}<br/>
										 实际月课时：{%foreach from=$staff.month item=value%}
										{%$value%},
										{%/foreach%}
										<br/>
										 学期总课时：{%$staff.semester_count%}
									</td>
									<td>{%if !$staff.award_data%}无{%else%}
										{%foreach from=$staff.award_data key=key item=achieve%}
										<p>{%$achieve%}</p>
										{%/foreach%}
										{%/if%}
										
										</td>
									<td>{%if $staff.assess_data=='1'%}优秀{%elseif $staff.assess_data=='2'%}合格{%elseif $staff.assess_data=='3'%}不合格{%/if%}</td>
								</tr>

							</tbody>
					</table>
				   </div><!--box-body -->
               </form>
				 {%$page%}
           </div><!--box box-default box-solid-->
        </div><!--row-->
 </div>
  <!--主要内容结束-->
{% include file="index.footer.tpl.php" %}
